//
//  Data.m
//  __PRODUCTNAME__
//
//  Created by 鹏飞罗 on 16/08/13
//  Copyright (c) dllo. All rights reserved.
//

#import "Data.h"
#import "Mv_Show_Play.h"
#import "Contents.h"
@implementation Data
- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"contents"]) {
        _contents = [Contents modelWithDictionary:value];
    } else if ([key isEqualToString:@"mv_show_play"]) {
        NSMutableArray<Mv_Show_Play *> *mvShowPlayArray = [NSMutableArray array];
        NSArray *mvArray = value;
        for (NSDictionary *mvShowPlayDic in mvArray) {
            Mv_Show_Play *mvShowPlay = [Mv_Show_Play modelWithDictionary:mvShowPlayDic];
            [mvShowPlayArray addObject:mvShowPlay];
        }
        _mv_show_play = mvShowPlayArray;
    }
}
+ (NSDictionary *)objectClassInArray{
    return @{@"mv_show_play" : [Mv_Show_Play class]};
}

@end
